package com.company;

// import org.springframework.util.ObjectUtils;

import java.util.Arrays;

public class P038_CallMainMethod {

    public static void main(String[] args) {
        Main.main(new String[]{"1", "a"});
        Main.main(new String[]{"1"});
        Main.main(new String[]{"1", "2", "3"});
    }


    public static class Main {
        public static void main(String[] args) {
            // if (ObjectUtils.isEmpty(args)) {
            //     System.out.println("没有参数");
            //     return;
            // }
            if (args.length < 2) {
                System.out.println(Arrays.toString(args));
                System.out.println("参数数量不够");
                return;
            }
            String a = args[0];
            String b = args[1];
            System.out.println(a + b);
        }
    }
}
